package com.tju.system.service;

import com.tju.system.mapper.UserMapper;
import com.tju.system.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 11873
 */
@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    
    public void addUser(User user){
        userMapper.addUser(user);
    }

    public String checkUser(String username,String status) {
      return   userMapper.checkUser(username, status);
    }
    
    public void login(String username,String status){
        userMapper.login(username, status);
    }

}
